package aso.upna.busControl;


import org.gstreamer.Bus;
import org.gstreamer.GstObject;
import org.gstreamer.State;
import org.gstreamer.elements.PlayBin;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author triki
 */
public class EndStream implements Bus.EOS {

    private PlayBin playbin;

    public EndStream(PlayBin playbin)
    {
        this.playbin = playbin;
    }
    
    public void endOfStream(GstObject arg0)
    {
        playbin.setState(State.NULL);
        System.out.println("Se ha alcanzado el final del stream");
    }
}
